短剧在线[短].js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. var rule = {
  2. title: '短剧在线',
  3. host: 'https://duanju.best',
  4. url: '/vodshow/fyclass--------fypage---.html',
  5. searchUrl: '/vodsearch/**----------fypage---.html',
  6. searchable: 2,
  7. quickSearch: 0,
  8. filterable: 0,
  9. class_parse: '.nav-menu-items&&li;a&&Text;a&&href;.*/(.*?).html',
  10. play_parse: true,
  11. lazy: $js.toString(() => {
  12. let html = JSON.parse(request(input).match(/r player_.*?=(.*?)</)[1])
  13. let url = html.url
  14. let from = html.from
  15. if (html.encrypt == '1') {
  16. url = unescape(url);
  17. } else if (html.encrypt == '2') {
  18. url = unescape(base64Decode(url));
  19. }
  20. log('切片地址:' + url);
  21. if (url.includes('.mp4')) {
  22. let play = JSON.parse(request(url, {
  23. redirect: false,
  24. withHeaders: true
  25. }
  26. )).location;
  27. //log(play)
  28. input = {jx: 0, url: play, parse: 0}
  29. } else {
  30. input
  31. }
  32. }),
  33. limit: 6,
  34. 推荐: '.module-list;.module-items&&.module-item;a&&title;img&&data-src;.module-item-text&&Text;a&&href',
  35. double: true,
  36. 一级: '.module-items .module-item;a&&title;img&&data-src;.module-item-text&&Text;a&&href',
  37. 二级: {
  38. title: 'h1&&Text;.tag-link&&Text',
  39. img: '.module-item-pic&&img&&data-src',
  40. desc: '.video-info-items:eq(0)&&Text;.video-info-items:eq(1)&&Text;.video-info-items:eq(2)&&Text;.video-info-items:eq(3)&&Text',
  41. content: '.vod_content&&Text',
  42. tabs: '.module-tab-item',
  43. tab_text: 'div--small&&Text',
  44. lists: '.module-player-list:eq(#id)&&.scroll-content&&a',
  45. },
  46. 搜索: '.module-items .module-search-item;a&&title;img&&data-src;.video-serial&&Text;a&&href',
  47. }